package com.jwdf.uda.bean;

import java.io.Serializable;

/**
 * 类说明：
 * 作者：huangqiuxin on 2016/6/17 14:27
 * 邮箱：648859026@qq.com
 */
public class UploadImage implements Serializable{
    private String imageUrl;
    private String imageToken;

    public UploadImage(String imageUrl){
        setImageUrl(imageUrl);
    }

    public UploadImage(String imageUrl, String imageToken){
        setImageUrl(imageUrl);
        setImageToken(imageToken);
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageToken() {
        return imageToken;
    }

    public void setImageToken(String imageToken) {
        this.imageToken = imageToken;
    }

    @Override
    public boolean equals(Object o) {
        if (o != null) {
            if (o instanceof UploadImage) {
                UploadImage other = (UploadImage) o;
                if (imageUrl != null && imageUrl.equals(other.imageUrl)) {
                    return true;
                }
            } else if (o instanceof String) {
                String other = (String) o;
                if (imageUrl != null && imageUrl.equals(other)) {
                    return true;
                }
            }
        }
        return false;
    }
}
